import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/views/Login'
import Home from '@/views/Home'
import Admin from '@/components/admin/Admin'
import Inspector from '@/components/admin/Inspector'
import AdminUpdatePwd from '@/components/admin/AdminUpdatePwd'
import SystemLogin from '@/components/log/SystemLogin'
import SystemRunning from '@/components/log/SystemRunning'
import CarMessage from "@/components/car/CarMessage"
import CarOrderMessage from "@/components/car/CarOrderMessage"
import SectionMessage from "@/components/section/SectionMessage"
import PlatInfo from "@/components/system/PlatInfo";
import Parameters from "@/components/system/Parameters";
import UserFeedback from "@/components/feedback/UserFeedback";
import InsFeedback from "@/components/feedback/InsFeedback";
import OrderManage from "@/components/order/OrderManage";
import ExceptionOrder from "@/components/order/ExceptionOrder";
import RefundOrder from "@/components/order/RefundOrder";
import User from '@/components/user/User'
import Berth from '@/components/sections/Berth'
import Geo from '@/components/geo/Geo'
import Pda from '@/components/pda/Pda'
import RevenueStatistics from '@/components/static/Revenue-Statistics'
Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'Login',
            component: Login
        },
        {
            path: '/home',
            name: 'Home',
            component: Home,
            children: [
                {
                    path: 'admin',
                    name: 'Admin',
                    component: Admin
                },
                {
                    path: 'inspector',
                    name: 'Inspector',
                    component: Inspector,
                },
                {
                    path:'SystemRunning',
                    name:'SystemRunning',
                    component:SystemRunning
                },
                {
                    path:'SystemLogin',
                    name:'SystemLogin',
                    component:SystemLogin
                },
                {
                    path:'AdminUpdatePwd',
                    name:'AdminUpdatePwd',
                    component:AdminUpdatePwd
                },
                {
                    path:'CarMessage',
                    name:'CarMessage',
                    component:CarMessage
                },
                {
                    path:'CarOrderMessage',
                    name:'CarOrderMessage',
                    component:CarOrderMessage
                },
                {
                    path:'SectionMessage',
                    name:'SectionMessage',
                    component:SectionMessage
                },
                {
                    path: 'platInfo',
                    name: 'PlatInfo',
                    component: PlatInfo
                },
                {
                    path: 'parameters',
                    name: 'Parameters',
                    component: Parameters
                },
                {
                    path: 'userfeedback',
                    name: 'UserFeedback',
                    component: UserFeedback,
                },
                {
                    path: 'insFeedback',
                    name: 'InsFeedback',
                    component: InsFeedback,
                },
                {
                    path: 'orderManage',
                    name: 'OrderManage',
                    component: OrderManage,
                },
                {
                    path: 'exceptionOrder',
                    name: 'ExceptionOrder',
                    component: ExceptionOrder,
                },
                {
                    path: 'refundOrder',
                    name: 'RefundOrder',
                    component: RefundOrder,
                },
                {
                    path:'user',
                    name:'User',
                    component:User,
                },
                {
                    path:'berth',
                    name:'Berth',
                    component:Berth,
                },
                {
                    path:'geo',
                    name:'Geo',
                    component:Geo,
                },
                {
                    path:'pda',
                    name:'Pda',
                    component:Pda,
                },
                {
                    path:'revenue',
                    name:'RevenueStatistics',
                    component:RevenueStatistics,
                },
            ]
        },
    ]
})